<%@ page language="java" pageEncoding="utf8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Movie System</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <style type="text/css">
        	@import url("script/dojo/resources/dojo.css");
            @import url("script/dijit/themes/tundra/tundra.css");
			@import url("script/dojox/grid/resources/Grid.css"); 
			@import url("script/dojox/grid/resources/tundraGrid.css"); 
			.heading {
                font-weight: bold;
                padding-bottom: 0.25em;
            } 
			.bigHello {
                height: 110px;
                line-height: 110px;
                text-align: center;
                font-weight: bold;
                font-size: 30px;
            } 
			#grid {
                border: 1px solid #333;
                height: 30em;
            } 
			.box {
                margin-top: 10px;
                color: #292929;
                width: 95%;
                border: 1px solid #BABABA;
                background-color: #ddd;
                padding-left: 5px;
                padding-right: 10px;
                margin-left: 10px;
                margin-bottom: 1em;
                -o-border-radius: 10px;
                -moz-border-radius: 12px;
                -webkit-border-radius: 10px;
                -webkit-box-shadow: 0px 3px 7px #adadad;
                border-radius: 10px;
                -moz-box-sizing: border-box;
                -opera-sizing: border-box;
                -webkit-box-sizing: border-box;
                -khtml-box-sizing: border-box;
                box-sizing: border-box;
                overflow: hidden;
            }
        </style>
        <script type="text/javascript" src="./script/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
        <script type="text/javascript" src="script/util.js"></script>
        <script type="text/javascript" src="script/search.js"></script>
        <script type="text/javascript" src="script/head.js"></script>
        <script type="text/javascript">
        	dojo.addOnLoad(function(){
      //  		initAdminHead();
        	});
		</script>
        
        <script type="text/javascript">
            dojo.require("dojo.parser");
            dojo.require("dijit.Dialog");
            dojo.require("dijit.form.CheckBox");
            dojo.require("dijit.form.Button");
            dojo.require("dijit.form.ComboBox");
            dojo.require("dijit.form.TextBox");
			dojo.require("dijit.Dialog");
			dojo.require("dijit.layout.ContentPane");
			dojo.require("dijit.layout.TabContainer");
			dojo.require("dojo.data.ItemFileWriteStore");
			dojo.require("dojox.grid.DataGrid");
			dojo.require("dijit.Tooltip");
            
            var publishYear = {
            	items:[]
            };
            
            var publishYearStore = new dojo.data.ItemFileWriteStore({
	         	data:publishYear
	        });
	         
            var categoryData = {
	         	items:[]
	         };
	        
	         var categoryStore = new dojo.data.ItemFileWriteStore({
	         	data:categoryData
	         });
            
            function gotonext(){
                if (dijit.byId("choice1").checked) {
                    window.location = "New_Project.htm";
                }
                else 
                    if (dijit.byId("choice2").checked) {
                        window.location = "Projects_Open.htm";
                    }
                    else {
                        window.location = "Projects.htm";
                    }
            }

        </script>
        <link href="theme/global_color.css" rel="stylesheet" type="text/css" />
        <link href="theme/mainstyle.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="tundra">
        <div id="contain">
            <div id="box" >
                <div id="menubar">
                    <div id="header">
                        <div class="logo">
                            BookStore
                        </div>
                        <div class="userpanel">
                        	<div class="menuLabels">
                        		<a id="account" href="/movieSystem/logout.do">退出</a> 
								<label>|</label>
								<a id="helpCenter" href="help.html">帮助中心</a> 
                            </div>
                            <div class="userinfo"></div>
                   	 	</div>
                    	<div class="ml">
                    	</div>
                   		<div class="mm">
                        <ul class="menu">
                            <li>
                                <a onmouseover="hideSubMenus()" onfocus="hideSubMenus()"  href="index.jsp"><span class="l"></span><span id="home">主页</span></a>
                            </li>
                            <li onmouseover="showSubMenu('sub1')" onmouseout="hideSubMenu('sub1')">
                                <a onmouseover="hideSubMenus('sub1')" class="active" onfocus="hideSubMenus('sub1')" href="#"><span class="l"></span>影片管理</a>
								<ul class="submenu" id="sub1" onmouseover="showSubMenu('sub1')" onmouseout="hideSubMenu('sub1')">
                                    <li>
                                        <a id="sub1child1" onfocus="showSubMenu('sub1')" href="addMovie.jsp">添加影片</a>
                                    </li>
									<li>
                                        <a id="sub1child2" onfocus="showSubMenu('sub1')" href="movieManage.jsp">修改影片</a>
                                    </li>
									<li>
                                        <a id="sub2child3" onfocus="showSubMenu('sub1')" href="#">所有影片</a>
                                    </li>
                                    <li class="submenu-bottom">
                                        <div class="sl">
                                        </div>
                                        <div class="sm">
                                        </div>
                                        <div class="sr">
                                        </div>
                                    </li>
                                </ul>
                            </li>
                            <li onmouseover="showSubMenu('sub2')" onmouseout="hideSubMenu('sub2')">
                                <a onmouseover="hideSubMenus('sub2')" onfocus="hideSubMenus('sub2')" href="#"><span class="l"></span>订单管理</a>
								<ul class="submenu" id="sub2" onmouseover="showSubMenu('sub2')" onmouseout="hideSubMenu('sub2')">
                                    <li>
                                        <a id="sub2child4" onfocus="showSubMenu('sub2')" href="#">所有订单</a>
                                    </li>
                                    <li class="submenu-bottom">
                                        <div class="sl">
                                        </div>
                                        <div class="sm">
                                        </div>
                                        <div class="sr">
                                        </div>
                                    </li>
                                </ul>
                            </li>
                            <!--<li><a href="#"><span class="l"></span>Update user pofile</a></li>-->
                            <li onmouseover="showSubMenu('sub3')" onmouseout="hideSubMenu('sub3')">
                                <a id="sub1parent" onfocus="showSubMenu('sub3')" href="#"><span class="l"></span>影院管理</a>
                                <ul class="submenu" id="sub3" onmouseover="showSubMenu('sub3')" onmouseout="hideSubMenu('sub3')">
                                    <li>
                                        <a id="sub3child1" onfocus="showSubMenu('sub3')" href="addHall.jsp">添加放映厅</a>
                                    </li>
                                    <li>
                                        <a id="sub3child2" onfocus="showSubMenu('sub3')" href="#">所有放映厅</a>
                                    </li>
                                    <li>
                                        <a id="sub3child3" onfocus="showSubMenu('sub3')" href="#">影院快讯</a>
                                    </li>
                                    <li class="submenu-bottom">
                                        <div class="sl">
                                        </div>
                                        <div class="sm">
                                        </div>
                                        <div class="sr">
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div class="mr">
                    </div>
                </div>
                
               </div>
               <div id="main">
                    <div class="mainl">
                    </div>
                    <div class="mainr">
                    </div>
                    <div class="mainpic">
                        <div class="main-des">
                            <div class="searchbase">
                                <!-- search base -->
                               <!--<div class="searchl"></div>-->
                                <div class="search-con" id="SearchDiv1">
                                   <form name="searchForm" onsubmit="return checkSimpleSearch()" method="post" action="movieSearch.do">
                                    <table border="0" id="searchTable">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <span class="searchicon" style="margin-right:10px;"></span>
                                                </td>
                                                <td width="50px" align="right">
                                                    <span>
                                                        <label for="searchBy">搜索</label>
                                                    </span>
                                                </td>
                                                <td width="280px">
                                                    <span class="round-input"><span class="round-l"></span><span class="round-r">
                                                    <input id="searchWord" name="searchWord" style="width:250px;" dojoType="dijit.form.TextBox"/>
                                                    </span></span>
                                                </td>
                                                <td width="60px" align="right">
                                                    <span style="float:right;">
                                                        <label for="searchWord">选择&nbsp;</label>
                                                    </span>
                                                </td>
                                                <td width="200px">
                                                    <span class="round-input">
                                                    	<span class="round-l"></span>
                                                    	<span class="round-r">
                                                            <select id="searchScope" name="searchScope" style="width:150px;" dojoType="dijit.form.ComboBox">
                                                                <option value="Owner" selected="selected">电影名</option>
                                                                <option value="Owner">主演</option>
                                                                <option value="Owner">导演</option>
                                                                <!-- drop down -->
                                                            </select>
                                                        </span>
                                                	</span>
                                                </td>
                                                <td>
                                                    <span class="orange-btn"><span class="inputbtn"> <span
													class="l"></span> 
													<input type="hidden" id="isAsc" name="isAsc" value="true">
													<input type="hidden" id="formFlag" name="formFlag" value="true">
													<input type="hidden" id="orderBy" name="orderBy" value="movieName">
													<input type="hidden" id="startIndex" name="startIndex" value="0">
													<input type="submit" value='搜索'></input>
													</span></span>
                                                    <!-- Search button -->
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                 </form>
                                </div>
                                <!-- search-con -->
                             </div>
					</div>
					
					
					<div id="leftPanel">
					 	<div class="admin_leftContanor">
				 			<a href="bookManager.html" class="leftTitle">
				 				<span class="l"></span> <span id="bookMgrTitle">影片管理</span>
				 			</a>
					 		
							<div class="leftContent" style="height:120px;">
								<div class="listItem">
									<a href="addMovie.jsp">
										<span id="addBookIcon">添加影片</span>
									</a>
								</div>
								<div class="listItem">
									<a href="movieManage.jsp">
										<span id="editBookIcon">查看/修改影片</span>
									</a>
								</div>
								<div class="listItem">
									<a href="movieManage.jsp">
										<span id="viewAllBookIcon">所有影片</span>
									</a>
								</div>
								
							</div>
					 		
					 	</div>
						<div class="admin_leftContanor">
				 			<a href="orderManage.jsp" class="leftTitle">
				 				<span class="l"></span>
								<span id="orderMgrTitle">订单管理</span>
				 			</a>
					 		
							<div class="leftContent">
								<div class="listItem">
									<a href="orderManage.jsp">
										<span id="viewAllOrderIcon">所有订单</span>
									</a>
								</div>
							</div>
					 		
					 	</div>
					 	<div class="admin_leftContanor">
				 			<a href="movieSessionManage.jsp" class="leftTitle">
				 				<span class="l"></span>
								<span id="orderMgrTitle">场次管理</span>
				 			</a>
					 		
							<div class="leftContent">
								<div class="listItem">
									<a href="movieSessionManage.jsp">
										<span id="viewAllOrderIcon">所有场次</span>
									</a>
								</div>
							</div>
					 		
					 	</div>
						<div class="admin_leftContanor">
					 			<a href="userManager.html" class="leftTitle">
					 				<span class="l"></span> <span id="userMgrTitle">影院管理</span>
					 			</a>
					 		
							<div class="leftContent" style="height:120px;">
								<div class="listItem">
									<a href="addHall.jsp">
										<span id="searchUserIcom">添加放映厅</span>
									</a>
								</div>
								<div class="listItem">
									<a href="addNews.jsp">
										<span id="doVipUserIcon">添加影院快讯</span>
									</a>
								</div>
								<div class="listItem">
									<a href="addNews.jsp">
										<span id="doVipUserIcon"><a class="more" href="newsList.jsp">管理已有快讯</a></span>
									</a>
								</div>
							</div>
					 	</div>
					 </div>
                
